package cn.longg.mapper;

import cn.longg.entity.Meeting;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface MeetingMapper extends Mapper<Meeting> {
    @SelectProvider(value = MeetingMapperSqlProvider.class,method = "selectByPage")
    List<Meeting> selectByPage(Meeting meeting);


    @UpdateProvider(value = MeetingMapperSqlProvider.class,method = "updateBegin")
    void updateBegin(@Param("beginMeeting") List<Integer> beginMeeting);

    @UpdateProvider(value = MeetingMapperSqlProvider.class,method = "updateFinish")
    void updateFinish(@Param("finishMeeting")List<Integer> finishMeeting);
}